package com.namo.cchadmin.consumer;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author WangXin
 * @date 2021/4/11 10:08
 */
@FeignClient("cch-api")
public interface CaptchaConsumer {
    /**
     * @param s
     * @return
     */
    @RequestMapping(method = RequestMethod.POST,value = "/pic_captcha/check_code",consumes = MediaType.APPLICATION_JSON_VALUE)
    String checkCaptcha(@RequestBody String s);
}
